import styled from "styled-components";

export const Commentwrap = styled.div`
  width: 100%;
  margin-top: 20px;
  background-color: var(--essaycommentback);
  color: var(--essaycontenttopfontcolor);
  position: relative;
  textarea {
    color: var(--essaycontenttopfontcolor);
    background-color: var(--essaycommentback);
  }
  & > .content {
    margin-top: 30px;
    width: 100%;
    padding: 10px 0;
    .iconfont.active {
      color: red;
    }
    & > .onecomment {
      & > .expand {
        margin-left: 150px;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        &:hover {
          background-color: #eeeeee;
        }
      }
      .line {
        display: flex;
        padding: 10px 0;
        width: 80%;
        margin-left: 110px;
        position: relative;
        &:first-child {
          margin: 10px auto;
        }
        & > img {
          width: 42px;
          height: 42px;
          border-radius: 50%;
        }
        & > .main {
          margin-left: 30px;
          & > div {
            height: 20px;
            line-height: 20px;
          }
          & > .username {
            font-size: 15px;
            .replyname {
              margin-left: 20px;
              color: #8a919f;
            }
          }
          & > .comment {
            font-size: 17px;
            font-family: STHeiti;
          }
          & > .time {
            font-size: 12px;
            & > span:nth-child(2) {
              margin-left: 10px;
            }
            & > .iconfont {
              margin-left: 20px;
              cursor: pointer;
            }
          }
        }
        .ant-space {
          /* margin-right: 20px !important; */
          position: absolute;
          right: 20px;
        }
      }
    }
  }
  .bottom {
    position: absolute;
    right: 50px;
    & > .cancelreply {
      color: blue;
      margin-right: 20px;
      cursor: pointer;
    }
    & > .reply {
      cursor: pointer;
    }
    & > .replyactive {
      cursor: not-allowed;
      /* pointer-events: none; */
      color: gray;
    }
  }
`;
